Fix a flaky test (due to hashes changing)
authorAlex Crichton <alex@alexcrichton.com>
Mon, 11 Aug 2014 05:08:57 +0000 (22:08 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 11 Aug 2014 05:08:57 +0000 (22:08 -0700)
tests/test_cargo_cross_compile.rs

index 035bc45e6dcf01eb47fa26cfc31ef913771dbe9e..2067b4b70f1d31d96bc05794dd6c208d7995537a 100644 (file)
@@ -366,6 +366,9 @@ test!(cross_tests {
             name = "foo"
             authors = []
             version = "0.0.0"
+
+            [[bin]]
+            name = "bar"
         "#)
         .file("src/main.rs", r#"
             extern crate foo;
@@ -386,7 +389,7 @@ test!(cross_tests {
                 execs().with_status(0)
                        .with_stdout(format!("\
 {compiling} foo v0.0.0 ({foo})
-{running} target[..]{triple}[..]test[..]foo-[..]
+{running} target[..]{triple}[..]test[..]bar-[..]
 
 running 1 test
 test test ... ok